package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.tust.app.domain.TSource;
import java.util.List;
import com.tust.app.dao.TSourceMapper;
import com.tust.app.service.TSourceService;
@Service
public class TSourceServiceImpl implements TSourceService{

    @Resource
    private TSourceMapper tSourceMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tSourceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TSource record) {
        return tSourceMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TSource record) {
        return tSourceMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TSource record) {
        return tSourceMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TSource record) {
        return tSourceMapper.insertSelective(record);
    }

    @Override
    public TSource selectByPrimaryKey(Integer id) {
        return tSourceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TSource record) {
        return tSourceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TSource record) {
        return tSourceMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TSource> list) {
        return tSourceMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TSource> list) {
        return tSourceMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TSource> list) {
        return tSourceMapper.batchInsert(list);
    }

    @Override
    public List<TSource> selectAll() {
        return tSourceMapper.selectAll();
    }

}
